//
//  AboutUsViewController.m
//  SuperRadio
//
//  Created by Damon on 14/12/17.
//  Copyright (c) 2014年 三个臭皮匠. All rights reserved.
//

#import "AboutUsViewController.h"



@interface AboutUsViewController ()


@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor grayColor];
    self.title = @"关于我们";
    // Do any additional setup after loading the view.
    
    
    //背景图片
    UIImageView *backImageView = [[UIImageView alloc] initWithFrame:self.view.frame];
    //通过给图片路径给图片
    NSString *path = [[NSBundle mainBundle] pathForResource:@"beijing" ofType:@"jpg"];
    backImageView.image = [UIImage imageWithContentsOfFile:path];
    [self.view addSubview:backImageView];
    [backImageView release];
    
    //添加一个view在背景图片上面,设置透明度
    UIView *usView = [[UIView alloc] initWithFrame:self.view.frame];
    usView.backgroundColor = [UIColor whiteColor];
    usView.alpha = 0.7;
    usView.opaque = NO;
    [backImageView addSubview:usView];
    [usView release];
    
    CGFloat width = self.view.frame.size.width;
    CGFloat height = self.view.frame.size.height;
    //关于我们的软件图标
    UIImageView *icoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(width/3, height/8, width / 3, width / 3)];
    icoImageView.backgroundColor = [UIColor cyanColor];
    icoImageView.image = [UIImage imageNamed:@"we.png"];
    icoImageView.layer.cornerRadius = 10;
    icoImageView.layer.masksToBounds = YES;
    icoImageView.center = CGPointMake(width / 2, icoImageView.frame.size.height + 30);
    [self.view addSubview:icoImageView];
    [icoImageView release];
    
    
    
    //软件的名字
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, width / 3 + 100, width - 60, 50)];
    nameLabel.text = @"乐色";
    nameLabel.textAlignment = NSTextAlignmentCenter;
    nameLabel.font = [UIFont systemFontOfSize:30];
    nameLabel.backgroundColor = [UIColor clearColor];
    [self.view addSubview:nameLabel];
    [nameLabel release];
    
    //联系电话
    UILabel *numLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, height/3*1.5, width - 60, 50)];
    numLabel.text = @"我知道你一直都在";
    numLabel.textAlignment = NSTextAlignmentCenter;
    numLabel.textColor = [UIColor orangeColor];
    numLabel.font = [UIFont systemFontOfSize:24];
    numLabel.backgroundColor = [UIColor clearColor];
    [self.view addSubview:numLabel];
    [numLabel release];


    
    
    UILabel *lastLable = [[UILabel alloc]initWithFrame:CGRectMake(30, height/4*2.5, width - 60, 120)];
    lastLable.text = @"版本:V1.0\n邮箱:supercchome@163.com\n微博:乐色\n三个臭皮匠工作室";
    lastLable.numberOfLines = 4;
    lastLable.font = [UIFont systemFontOfSize:13];
    lastLable.textAlignment = 1;
    lastLable.backgroundColor = [UIColor clearColor];
    [self.view addSubview:lastLable];
    [lastLable release];
    
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
